﻿@model Data.Web.Category

@{
    
}
 

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Danh mục</legend>

        @Html.HiddenFor(model => model.ID)

        <div class="editor-label">
            Tiêu đề
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>



        @Html.HiddenFor(model => model.Type)
        @Html.HiddenFor(model => model.Level)
        @Html.HiddenFor(model => model.Image)


        <div class="editor-label">
           Danh mục cha
        </div>
        <div class="editor-field">
            @Html.DropDownList("Parent") 
        </div>  
        <div class="editor-label">
            @Html.LabelFor(model => model.Status)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Status)
            @Html.ValidationMessageFor(model => model.Status)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
